/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    
    public partial class Ok3w_Article
    {
        //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上 [NotMapped]属性，否则会异常

        /// 为防后期变更时id出现两次，以该方法中的ID为准
        /// <summary>
        ///分类
        /// </summary>
        [Display(Name = "文章id")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Required(AllowEmptyStrings = false)]
        public int id { get; set; }

        /// <summary>
        /// 外发链接
        /// </summary>
        [NotMapped]
        [Display(Name = "外发链接")]
        [Column(TypeName = "varchar(255)")]
        public string OutLink { get { return "http://downloadit.ctruck.com.cn:9990/#/downfile_look?id=" + id; } set { } }
    }
}